import request from '@/utils/request'

// 获取客户资产列表
export const list_customer_financing = (search) => 
    request({
        url: '/op/client_assets/get_client_assets_list',
        method: 'get',
        params:{ 
            pageNo:search.pageNo,
            pageSize:search.pageSize,
            keyWord:search.keyWord
        }

    })
// 获取指定的客户资产
export const getFinancingDetail = (code) => 
    request({
        url: '/op/client_assets/get_client_assets',
        method: 'get',
        params:{ 
            code
        } 
    })

// 审核 客户资产    
export const Audit_financing = (form) => 
    request({
        url: '/op/client_assets/audit_client_assets',
        method: 'post',
        data:JSON.stringify(form) 
    })

    // 删除 客户资产
export const del_cus_property = (code) => 
    request({
        url: '/op/client_assets/delete_client_assets',
        method: 'post',
        params:{
            code
        } 
    })


// 获取客户需求列表
export const list_customer_purchase = (search) => 
    request({
        url: '/op/client_demand/get_client_demand_list',
        method: 'get',
        params:{ 
            pageNo:search.pageNo,
            pageSize:search.pageSize,
            keyWord:search.keyWord
        }

    })
    

// 获取指定的客户需求
export const getPurchaseDetail = (code) => 
    request({
        url: '/op/client_demand/get_client_demand',
        method: 'get',
        params:{ 
            code
        } 
    })
    // 审核 客户需求
export const Audit_purchase = (form) => 
    request({
        url: '/op/client_demand/audit_client_demand',
        method: 'post',
        data:JSON.stringify(form)

    })
 // 删除 客户需求   
export const del_cus_purchase = (code) => 
    request({
        url: '/op/client_demand/delete_client_demand',
        method: 'get',
        params:{
            code
        }

    })
